package com.ruoyi.meiyijia.controller;

import cn.hutool.extra.ssh.Sftp;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.meiyijia.service.FileMeiyijiaInventoryService;
import com.ruoyi.meiyijia.service.InventoryStatisticsService;
import com.ruoyi.meiyijia.vo.SaleParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author: 王振鹏
 * @date: 2023年05月21日 22:30:00
 * @description:
 */
@RestController
@RequestMapping("/meiyijia/inventoryStatistics")
public class InventoryStatisticsController {

    @Autowired
    private InventoryStatisticsService inventoryStatisticsService;

    @GetMapping("/InventoryContrast")
    public AjaxResult InventoryContrast( SaleParam saleParam)
    {
        Map<String ,Object> result = inventoryStatisticsService.InventoryContrast(saleParam);
        return AjaxResult.success(result);
    }

}
